<extend name="Public:base"/>


<block name="left">
	<ul>
		<li><a href="{:U('Project/add')}">添加项目</a></li>
		<li><a href="{:U('Project/lists')}">项目列表</a></li>
		<li><a href="{:U('Project/addcou')}">添加优惠券</a></li>
		<li><a href="{:U('Project/coulists')}">优惠券列表</a></li>
		
	</ul>
</block>

<block name="right">
	<table class="table table-hover">
	<thead>
		<th>id</th>
		<th>优惠券</th>
		<th>类型</th>
		<th>金额</th>
		<th>开始时间</th>
		<th>结束时间</th>
	
		<th>操作</th>
	</thead>
	<tbody>

		
	
		<foreach name="coupon_list.coulists" item="cl" >
		<tr>
			<td>{$cl.id}</td>
			<td>{$cl.title}</td>
			<td>{$pl.type}</td>
			<td>{$pl.des}</td>
			<td><img src="__LOGO__{$pl.logo_img}" alt=""></td>
			
	
		
			<td>{$pl.create_time|date="Y-m-d H:i:s", ###}</td>
			<td>
				<a class="btn btn-xs btn-warning" href="{:U('Project/couedite',array('id'=>$cl['id']))}">编辑</a>
				<a class="btn btn-xs btn-danger js_del" href="{:U('Project/coudelete',array('id'=>$cl['id']))}"> 删除</a>
			</td> 

		</tr>
	</foreach>	

	</tbody>
	<tfoot>
		<th colspan="6">{$project_list.page}</th>
	</tfoot>


	</table>
</block>
